import { ExceptionFilter } from '@nestjs/common';
import 'reflect-metadata'
export function UseFilters(...filters: any[]){
    return (target:object|Function, propertyKey?: string|symbol, decorator?: any) => {
        if (decorator) {
            Reflect.defineMetadata('filters', filters,decorator.value)
        } else {
            Reflect.defineMetadata('filters', filters,target)
        }
    }
}